package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商家信息表
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("merchant_info")
public class MerchantInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关联用户ID
     */
    @TableId(value = "user_id")
    private Long userId;

    /**
     * 店铺名称
     */
    private String shopName;

    /**
     * 营业执照URL
     */
    @TableField("business_license") // 确保与数据库列名一致
    private String businessLicense;

    /**
     * 审核状态(0待审 1通过 2拒绝)
     */
    @TableField("audit_status")
    private Integer auditStatus;

    /**
     * 驳回原因
     */
    @TableField(value = "reject_reason", updateStrategy = FieldStrategy.IGNORED)
    private String rejectReason;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    private String address;
}
